-- StyleCheckBox Panel

local PANEL = {}

function PANEL:SetEnabledTexture( sTexture )
	self.enabled_texid = surface.GetTextureID( sTexture )
end

function PANEL:SetDisabledTexture( sTexture )
	self.disabled_texid = surface.GetTextureID( sTexture )
end

function PANEL:GetEnabledTexture( sTexture )
	return self.enabled_texid or 0
end

function PANEL:GetDisabledTexture( sTexture )
	return self.disabled_texid or 0
end

function PANEL:Paint()
	surface.SetDrawColor( 255, 255, 255, 255 )
	surface.SetTexture( self:GetChecked( ) and self:GetEnabledTexture() or self:GetDisabledTexture() )

	surface.DrawTexturedRect(0, 0, self:GetWide(), self:GetTall())
	
	return true
end


vgui.Register( "InsStyleCheckBox", PANEL, "DCheckBox" )